package com.gome.axwl.aoc.service;

import com.gome.axwl.aoc.entity.po.ApprovalRecordPo;

import java.util.List;

/**
 * @Description: 审批流程
 * @Auther: yinyuxin@gome.com.cn
 * @Date: 2018/7/16 14:19
 */
public interface ApprovalRecordService {

    /**
     * 插入单挑记录
     * @param approvalRecordPo
     */
    void insert(ApprovalRecordPo approvalRecordPo);


    /**
     * 更新
     * @param approvalRecordPo
     */
    void update(ApprovalRecordPo approvalRecordPo);


    /**
     * 根据主键查询记录
     * @param id
     * @return
     */
    ApprovalRecordPo queryById(Integer id);


    /**
     * 根据id删除记录
     * @param id
     */
    void delete(Integer id);

    /**
     * 查询历史审批记录
     * @param approvalRecordPo
     * @return
     */
    List<ApprovalRecordPo> queryApprovalHistory(ApprovalRecordPo approvalRecordPo);

}
